<?php
if ( ! defined('PPPHP')) exit('非法入口');

class test extends ppphp 
{
	public function __construct()
	{
		parent::__construct();
	}
	public function newss()
	{
		error_reporting(E_ALL);
		$connect = new Memcached; //申明一个 新的memcached链接 
		$connect->setOption(Memcached::OPT_COMPRESSION, false); //关闭压缩功能
		$connect->setOption(Memcached::OPT_BINARY_PROTOCOL, true); //使用binary二进制协议
		$connect->addServer('a38508bf4f6a11e4.m.cnqdalicm9pub001.ocs.aliyuncs.com', 11211); //添加实例地址  端口号
		$connect->setSaslAuthData('a38508bf4f6a11e4', 'Beijing0338'); //设置帐号密码进行鉴权
		$connect->set("hello", "world");
		echo 'hello: ';
		echo $connect->get("hello"); 
		$connect->quit();	
	}
	public function s()
	{
		echo 123;
	}
}
